package cn.b.sky.mes.mm.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.b.sky.mes.mm.service.DistributionTacticsService;
import cn.b.sky.common.utils.SpringBeanUtil;
import cn.b.sky.schedule.job.BaseQuartzJobBean;
import cn.b.sky.schedule.model.TimedJobInfo;

/**
 * 
 * <strong>Title : SafetyInventroyJobBean.java<br></strong>
 * <strong>Package : cn.b.sky.mes.mm.schedule<br></strong>
 * <strong>Description : </strong>配送策略-安全库存 定时JOB<br> 
 * <strong>Create on : 2016-9-21 下午6:51:23<br></strong>
 * <p>
 * @author JinQuan.Fu<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人|修改日期|修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class SafetyInventroyJobBean implements BaseQuartzJobBean{
  
  private static final Logger LOGGER = LoggerFactory.getLogger(SafetyInventroyJobBean.class);

  DistributionTacticsService distributionTacticsService= (DistributionTacticsService) SpringBeanUtil.getBean("distributionTacticsService");
  
  @Override
  public void executeManual(TimedJobInfo timeJobInfo) {
    LOGGER.info("--------配送策略-安全库存定时JOB开始---------");
    distributionTacticsService.doCreateSafetyInventroyTaskJob(timeJobInfo.getSiteCode());
    LOGGER.info("--------配送策略-安全库存定时JOB结束---------");
  }

}
